﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>按照定高中间自适应的例子</title>
    <style type="text/css">
        html, body
        {
            height: 100%;
            margin: 0px;
            padding:0px;
        }
        #layout
        {
            position: relative;
            width: 100%;
            height: 100%;
            margin: 0px;
            padding:0px;
            background-color: Gray;
        }
        .head
        {
            position: absolute;
            width: 100%;
            height: 100px;
            top: 0px;
            border: 1px solid red;
        }
        .contentleft
        {
            position: absolute;
            width: 100px;
            height: 80px;
            left: 10px;
            border: 1px solid red;
        }
        .contentright
        {
            position: absolute;
            width: 100px;
            height: 80px;
            top: 5px;
            right: 10px;
            border: 1px solid red;
        }
        .contentmiddle
        {
            position: absolute;
            left: 110px;
            top: 10px;
            bottom: 10px;
            right: 110px;
            border: 1px solid red;
        }
        .content
        {
            position: absolute;
            width: 100%;
            top: 110px;
            bottom: 210px;
            border: 3px solid blue;
        }
        .foot
        {
            position: absolute;
            width: 100%;
            height: 200px;
            bottom: 0px;
            background-color: Red;
        }
    </style>
</head>
<body>
    <div id="layout">
        <div class="head">
        </div>
        <div class="content">
            
            <div class="contentleft">
                headleft</div>
            <div class="contentmiddle">
                headmiddle</div>
            <div class="contentright">
                headright</div>
        </div>
        <div class="foot">
            foot</div>
    </div>
</body>
</html>
